﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace LaserLineDetector.View
{
    /// <summary>
    /// WinLogList.xaml 的交互逻辑
    /// </summary>
    public partial class WinLogList : DMSkin.DMSkinWindow
    {
        public WinLogList()
        {
            InitializeComponent();
        }

        /// <summary>
        /// 关闭前的响应
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void DMSkinWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
        {
            if (IsQuit)
            {
                e.Cancel = false;
            }
            else
            {
                this.Hide();
                e.Cancel = true;
            }
        }

        /// <summary>
        /// 是否真实关闭标志
        /// </summary>
        public bool IsQuit { get; set; }
    }
}
